import random
import time

from django.conf import settings
from django.core.cache import cache

from registered.models import DetailedList
from .celery import app


@app.task
def update_status(user_id):
    DetailedList.objects.filter(id=user_id).update(status=1)
    return True
